package com.hjy.hjyojbackendserviceclient.service;


import com.hjy.hjyojbackendjudgeservice.model.entity.QuestionSubmit;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "hjyoj-backend-judge-service",path = "/api/judge/inner")
public interface JudgeServiceClient {
    /**
     * 判题服务
     * 传入题目id，获取题目信息
     *
     * @param questionSubmitId
     * @return
     */
    @PostMapping("/do")
    QuestionSubmit dojudge(@RequestParam("questionSubmitId") Long questionSubmitId);
}
